home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / vbasic / subvbx.exe / SUBVBCTL.H < prev    next >
C/C++ Source or Header  |  1993-05-13  |  2KB  |  78 lines

  1. // subvbctl.h : interface of the CVBClone class and CMyCircleMyCircleclass
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CVBClone
  7. //                
  8.  
  9. //*************************************************************
  10. //  Class:
  11. //      CVBClone
  12. //
  13. //  Description:       
  14. //      This class is used to create a derived class of CVBControl that can take
  15. //      over control of a VBX that has been loaded into a dialog--or in any other
  16. //      way created as a CVBControl
  17. //
  18. //  Derived from:
  19. //      CVBControl
  20. //
  21. //
  22. //
  23. //  Member Functions:
  24. //
  25. //      SubclassVBControl - Subclasses an existing VB control
  26. //
  27. //  Comments
  28. //
  29. //  History:    Date       Author           Comment
  30. //              05/13/93   Brian Scott      Created
  31. //                         with help from John Seghers
  32. //
  33. //*************************************************************  
  34.  
  35. class CVBClone : public CVBControl
  36. {
  37. protected:
  38.     CVBClone() {}        // protect the constructor to only allow derived
  39.                         // classes to be created
  40.     
  41. public:
  42.     void SubclassVBControl(CWnd* pWnd, UINT idChild, BOOL bEmbedded);
  43. };
  44.  
  45.  
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CMyGrid
  48. //       
  49. // This class subclasses the grid control and requests that the arrow keys
  50. // get passed to the control.
  51. //
  52.    
  53. class CMyGrid : public CVBClone
  54. {    
  55.       // Construction
  56. public:
  57.     CMyGrid();
  58.  
  59. // Attributes
  60. public:
  61.  
  62. // Operations
  63. public:
  64.  
  65. // Implementation
  66. public:
  67.     virtual ~CMyGrid();
  68.  
  69.  
  70.    // Generated message map functions
  71. protected:
  72.     //{{AFX_MSG(CMyGrid)
  73.     afx_msg UINT OnGetDlgCode();
  74.     //}}AFX_MSG
  75.     DECLARE_MESSAGE_MAP()
  76. };   
  77.  
  78.